package com.thkj.service.impl;

import dp.dao.PagingList;
import com.thkj.framework.base.BaseService;
import com.thkj.service.TblInformationService;
import com.thkj.entity.TblInformation;

import java.util.Map;

import org.springframework.stereotype.Service;

@Service
public class TblInformationServiceImpl extends BaseService implements TblInformationService {
    public void insertTblInformation(TblInformation t){
        dao.insert("com.thkj.mapper.TblInformation.insert", t);
    }

    public int updateTblInformation(TblInformation t){
        int row = dao.update("com.thkj.mapper.TblInformation.update", t);
        return row;
    }

    public int deleteTblInformation(String t ){
        return dao.delete("com.thkj.mapper.TblInformation.delete", t);
    }

    public TblInformation getTblInformationById(String t){
        return dao.queryForObject("com.thkj.mapper.TblInformation.getById", t, TblInformation.class);
    }
    
    @Override
	public PagingList<Map> query(int pageIndex, int pageSize, Map<String, Object> param) {
		return dao.queryForPagingList("com.thkj.mapper.TblInformation.query",param, pageIndex, pageSize, Map.class);
	}
}